﻿<%@ Page Language="C#" MasterPageFile="~/Front/Site.Master" AutoEventWireup="true" CodeBehind="GroupDetail.aspx.cs" Inherits="VK.Casemeet.Web.Front.GroupDetail" %>
<%@ Import Namespace="VK.Comm" %>
<%@ Register src="~/Front/Controls/ShopCard.ascx" tagname="ShopCard" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentHead" runat="server">
    <link href="/Front/css/style.css" type="text/css" rel="stylesheet" charset="utf-8">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentBody" runat="server">
<div id="content_width">
		<!------banner------>
		<div id="info_banner"><img src="/Front/images/info_banner.jpg"/></div>
		<!----首页内容-----> 
		<div id="content">
			<div id="sidebar">
				<div class="tuan_classi bg border">
					<div class="title bluetitle"><h3>团购分类</h3><div class="clear"></div></div>
                    <asp:Repeater runat="server" ID="repGroups">
                        <HeaderTemplate><ul class="nav"></HeaderTemplate>
                        <ItemTemplate>
                           <li><a title='<%#Eval("gc_name")%>' href='/<% =(Master as VK.Casemeet.Web.Front.Site).GetCurrentAreaID() %>/Group.html?gcid=<%#Eval("gc_id")%>'><%#Util.VisibleString(Eval("gc_name").ToString())%></a></li>
                        </ItemTemplate>
                        <FooterTemplate></ul></FooterTemplate>
                    </asp:Repeater>

				</div>
				<div class="contact_us bg border spacing">
                    <uc1:ShopCard ID="ShopCard1" runat="server" />
				</div>
			</div>
			<div id="main">
				<div class="breadcrumbs border">
					<div class="title graytitle"><p>当前位置 &gt;  <a href="/Default_<% =(Master as VK.Casemeet.Web.Front.Site).GetAreaUrl() %>.html">首页</a> &gt; <a href="/<% =(Master as VK.Casemeet.Web.Front.Site).GetCurrentAreaID() %>/Group.html">团购</a> &gt; 商品详细</p></div>
				</div>
				<div class="deal_intro bg border spacing">
					<div class="title greentitle"><h2>团购详细</h2><div class="clear"></div></div>
					<div class="deal_box">
						<div class="img_box"><img src="images/01.jpg"></div>
						<div class="tuan_info">
							<h3><a href="#"><asp:Literal runat="server" ID="tbtitle"></asp:Literal></a></h3>
							<div class="price_box border spacing">
								<strong style=" display:block; width:80px;">¥<asp:Literal runat="server" ID="tbdisprice"></asp:Literal></strong>
								<input class="submit spacing" type="button" id="btnSignup"/>
								<table>
									<tbody>
										<tr>
											<th class="market_price">市场价</th>
											<th class="discount">折扣</th>
											<th>您节省</th>
										</tr>
										<tr>
											<td class="market_price"><del>¥<asp:Literal runat="server" ID="tbprice"></asp:Literal></del></td>
											<td><asp:Literal runat="server" ID="tbdiscount"></asp:Literal>折</td>
											<td>¥<asp:Literal runat="server" ID="tbsaveprice"></asp:Literal></td>
										</tr>
									</tbody>
								</table><div class="clear"></div>
							</div>
							<div class="time">还剩时间：<span class="reducetime"><%=EndingTime%></span>  </div>
							<div class="apply">已有<em><asp:Literal runat="server" ID="tbgroupcount"></asp:Literal></em>人参团，数量有限，下手要快哦！  
                                
                            </div>
						</div><div class="clear"></div>
					</div>
					<div class="title greentitle"><h3>商品详细</h3><div class="clear"></div></div>
					<div class="content">
						<asp:Literal runat="server" ID="tbContent"></asp:Literal>
						<ul class="pic_con">
							<li><img src='<%=ImgPath %>'>图片展示</li>
							
						</ul><div class="clear"></div>
					</div>
				</div>
			</div>
			<div class="clear"></div>
		</div>

        <input value='<%=groupid %>' id="hidgid" type="hidden" />
        <input value='<%=isLogin %>' id="hidislogin" type="hidden" />
	</div>

    <script type="text/javascript" src="/Front/js/gInvertTime.js"></script>
     <script type="text/javascript">
         var isSignup = false;
         $(function () {
             //计算团购倒计时
             GroupTime($(".reducetime"), $(".reducetime").html(), true);
             //进行报名处理.
             //.检查是否登陆
             //.是否已经报名.
             //.正式报名.
             $("#btnSignup").click(function () {
                 if ($("#hidislogin").val() == "False") {
                     alert("请先进行登录.");
                     return;
                 }
                 if (isSignup == true) { alert("已参加过报名."); return; }
                 $.get("/PageHandler/GroupSigup.ashx?groupid=" + $("#hidgid").val(), function (data) {
                     if (data == 1) {
                         alert("已参加过报名.");
                     }
                     isSignup = true;
                 });
             });

         });
         
    </script>
</asp:Content>
